package com.fjec.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 004.发布秒杀活动表
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
@TableName("biz_activity_seckill")
@Data
public class BizActivitySeckill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 活动标题
     */
    @TableField("Title")
    private String title;

    /**
     * 商户类型 3=分拣厂
4=农资厂
5=包装物厂
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 商户Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 是否剩余礼物
     */
    @TableField("GiftRemaining")
    private Integer giftRemaining;

    /**
     * 活动开始时间
     */
    @TableField("StartTime")
    private LocalDateTime startTime;

    /**
     * 活动结束时间
     */
    @TableField("EndTime")
    private LocalDateTime endTime;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return "BizActivitySeckill{" +
            "id=" + id +
            ", title=" + title +
            ", busiType=" + busiType +
            ", busiId=" + busiId +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
